<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	    <link href="css/feedBack.css" rel="stylesheet"/>
	</head>

	<body>
		<div class="head1">
		
		<span class="mui-action-back mui-icon mui-icon-back"></span>
		
		<div class="feedBack1">意见反馈</div>
		
		
		 </div>
		
		
		<div class="body1">
			<div class="content1">Korea Comics</div>
		</div>
		
		
		<div class="question">
		  <div class="question1">
		   <div><font size="2">提问</div>
		  </div>
		</div>
		
		<div class="in">
			<div class="in1">
			<textarea id="inputs">
				
			</textarea>
			
			</div>
		</div>
		
		
		
		<div class="submits">
		  <div class="submits1">
		  	 <div class="question2">
		  	    <font size="4">提问</font>
		  </div>
		
		</div>
		</div>
		
		<script src="js/jquery.min.js"></script>
		
		 <script src="js/mui.min.js"></script>
         <script src="js/url.js"></script>
		   
		<script>
			/*
			 如果你要用jQuery必须将下面这行代码放在第一行，然后将$符号换成jQuery
			 * */
			$.noConflict();
			jQuery.ajax({
				type: 'post',
				url: serverip.ip + '/feedbacktest',
				async:false,
				xhrFields: {
					withCredentials: true
				},
				crossDomain: true,
				success: function(data) {
					if(data != 1) {
						
							mui.openWindow({
								url: 'login.html'
							})
						
					} 
				}
			});
			
			
			
			
			
			
			 document.getElementsByClassName("question2")[0].addEventListener("tap",function(){
				jQuery.ajax({
		    	type:"post",
		    	url:serverip.ip+'/feedback',
		    	data:{'u_f_content':document.getElementById("inputs").value},
		    	dataType:'json',
				 xhrFields: {
                withCredentials: true
                  },
                  crossDomain: true,
		    	success:function(data){
		    		if(data=='请登录'){
		    			mui.openWindow({
		    				url:'login.html'
		    			})
		    		}else{
		    			alert('成功')
		    		}
		    	}
		        });
			});
			
			
			
			
		</script>
		
		
		<script type="text/javascript">
			mui.init()
			
		</script>
		
		
	</body>

</html>
